package webbandidong.bo.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import webbandidong.bo.CompanyBO;
import webbandidong.dao.CompanyDAO;
import webbandidong.model.Company;

@Service(value = "companyBOImpl")
public class CompanyBOImpl implements CompanyBO {

    @Autowired
    private CompanyDAO companyDAO;

    public void setCompanyDAO(CompanyDAO companyDAO) {
        this.companyDAO = companyDAO;
    }

    public List<Company> getAllCompanies() {
        return companyDAO.getAllCompanies();
    }
}
